<template>
  <div class="home">
    <homeHeader />
    <router-view/>
    <homeFooter />
  </div>
</template>

<script>
import homeHeader from '@/components/home/homeHeader'
import homeFooter from '@/components/home/homeFooter'
import axios from 'axios'
export default {
  name: '',
  components: {
    homeHeader,homeFooter
  },
  created(){
    this.getToken()
  },
  methods:{
    getToken(){
      axios({
        method:'POST',
        url:'/api/v1/session/fetchSession',
        data:{
            "appId": "WX01",
            "appVersion": "1",
            "md5": "123",
            "osType": "IOS",
            "osVer": "12.0",
            "unitId": "35672202172460",
            "unitType": "IPHONE X"
        },
      })
       .then((params) => {
         console.log(params);
       })
    }
  }
}
</script>
<style>
.home{
  overflow: hidden;
}
</style>
